<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
</head>
<body>
	<h1>模板哈哈哈哈或或</h1>
	<table border="1">
		<tr>
			<td>姓名:</td>
			<td>性别:</td>
			<td>年龄:</td>
			<td>爱好:</td>	
			<td>操作:</td>	
		</tr>
	<?php foreach ($arr as $k => $v) {?>
	<?php if ($k%2==1) { ?>
		<tr bgcolor="red">
		
	<?php } ?>
		<td><?php echo $v['username'] ?></td>
			<td><?php echo $v['sex'] ?></td>
			<td><?php echo $v['age'] ?></td>
			<td><?php echo $v['hoby'] ?></td>
			<td><a href="./edit.php?id=<?php echo $k ?>">详情</a></td>
	</tr>

	<?php } ?>


	</table>
</body>
</html>